#pragma once
#include "SDLAnimation.h"
#include "Boss.h"

class Magie01 :
	public SDLComponent
{
public:
	Magie01(Boss* theBoss, int bossPositionX, int bossPositionY, int characterPositionX, int characterPositionY);
	Magie01();
	~Magie01();

	void Update(){}
	void Start(){}
	void Stop(){}
	void Draw();

	void PlayMagie();

private:
	void ApplySurfaceMagie(int index, SDL_Texture* texture, SDL_Renderer* renderer);
	SDLAnimation magieDebut;
	SDL_Texture* magie01;

	static const int SEPARATOR = 10;

	float size;

	bool isPlaying;
	int nbFrame, frameRate;
	float currentTime;
	int currentFrame;

	int etat;
	Boss* linkBoss;

	SDL_Point bossPosition;
	SDL_Point characterPosition;

	//SDL_Rect srcRect;
	//SDL_Rect dstRect;

	std::vector<SDL_Rect*> listeSrcRect;
	std::vector<SDL_Rect*> listeDstRect;
};

